﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GeneralAdaptiveFramework
{
    public partial class MainLoader : Form
    {
        CMSInterface manager = new ComponentMgr();
        string escapePath = "path";
        string patrolPath = "path";
        public MainLoader()
        {
            InitializeComponent();
            // create a loader
            manager = new ComponentMgr();
        }

        private void escapeButton_Click(object sender, EventArgs e)
        {
            manager.addComponent(escapePath, "Escape");
        }

        private void stopButton_Click(object sender, EventArgs e)
        {
            manager.stop();
        }

        private void patrolButton_Click(object sender, EventArgs e)
        {
            manager.addComponent(patrolPath, "Patrol");
        }
    }
}
